package com.plian.system.dao.fr.groupyearindicatorsvalue;

import com.plian.Tools.pagedata.PageData;
import com.plian.system.dao.DaoSupport;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

/**
* 说明：年度指标从表
*/
@Component
public class GroupYearIndicatorsValueDao {
@Resource(name = "daoSupport")
private DaoSupport dao;

	/**
	* 新增
	* @param list
	* @throws Exception
	*/
	public void saveAll(List<PageData> list) throws Exception {
		dao.save("GroupYearIndicatorsValueMapper.saveAll",list);
	}
	/**
	* 根据主表id删除
	* @return
	* @throws Exception
	*/
	public void delPrenteId(String id) throws Exception {
		dao.delete("GroupYearIndicatorsValueMapper.delPrenteId",id);
	}
	/**
	* 根据主表id查询列表
	* @return
	* @throws Exception
	*/
	public List<PageData> find_parentId(String id) throws Exception {
		return (List<PageData>) dao.findForList("GroupYearIndicatorsValueMapper.find_parentId",id);
	}

}